from datetime import datetime
import requests,threading
def fetch(url):
    response=requests.get(url)
    print('Get %s: %s'%(url,response))
time0=datetime.now()
t1=threading.Thread(target=fetch,args=('https://www.baidu.com',))
t2=threading.Thread(target=fetch,args=('https://www.taobao.com',))
t3=threading.Thread(target=fetch,args=('https://www.qq.com',))
t1.start();t2.start();t3.start()
t1.join();t2.join();t3.join()
time1=datetime.now()
time=time1-time0
print(time.microseconds)
